# -*- coding: UTF-8 -*-
'''
Created on 02/10/2014

@author: Eduardo Cardeira - Num 6033

Exemplo 6 da Aula Teorica 2

'''

l1 = [1, 2, 3, 4, 5, 6, 7, 8, 9]
l2 = []
k = len(l1)
while k:
    if k % 2:
        l2.append(k)
    else:
        print k, "par"
    k -= 1
print l2
pass

a = 0
k = 20
while True:
    a += 1
    if a > k:
        break
    if a % 2:
        continue
    print "valor de a", a

x = 1
while x < 10:
    print x
    x += 1
else:
    print "Finito"
pass